#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	printf("%d\n", 1 && 1);
	printf("%d\n", 1 && 0);
	printf("%d\n", 0 && 1);
	printf("%d\n", 0 && 0);
	printf("------------------\n");
	printf("%d\n", 1 || 1);
	printf("%d\n", 1 || 0);
	printf("%d\n", 0 || 1);
	printf("%d\n", 0 || 0);
	printf("------------------\n"); 
	printf("%d\n", !1);
	printf("%d\n", !0);
	printf("%d\n", !!1);
	printf("%d\n", !!0);
	printf("------------------\n");

	return 0;
}